# Maintainer: Drew DeVault <sir@cmpwn.com>
pkgname=aerc
pkgver=0.10.0
pkgrel=0
pkgdesc="email client for your terminal"
url="https://aerc-mail.org"
arch="all"
license="MIT"
depends="less ncurses"
makedepends="go scdoc"
checkdepends="gpg gpgme"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~rjarry/aerc/archive/$pkgver.tar.gz"

build() {
	unset LDFLAGS # passed as go linker flags and invalid
	make PREFIX=/usr VERSION=$pkgver
}

check() {
	go test ./...
}

package() {
	unset LDFLAGS
	make install PREFIX=/usr DESTDIR="$pkgdir" VERSION=$pkgver
}

sha512sums="
016182847e1fb8198973aa8522d9a205a8589760d40b0177cb41a9b236277fb4aa11d2c0f14bd836be5a53f4b4d5ef65b407407e09399a2ad025fbf22d53bfbb  aerc-0.10.0.tar.gz
"
